<%@ Page Language="C#" EnableViewState="false" AutoEventWireup="true" MasterPageFile="theme.Master" Inherits="CommunityServer.Hubs.Controls.CSHubThemePage" %>

<asp:Content ContentPlaceHolderID="bbcr" runat="server">
    <div class="CommonBreadCrumbArea"><div class="Common">
        <CSHub:HubData Property="Name" LinkTo="HomePage" runat="server" />
        &raquo;
        <CSHub:HubData Property="Name" LinkTo="edit" ResourceName="Edit" runat="server" />   
    </div></div>
</asp:Content>

<asp:Content ContentPlaceHolderID="tr" runat="server">
    <CSControl:Title runat="server" IncludeSiteName="true" Text="Edit Group" IncludeSectionOrHubName="true" EnableRendering="true" Tag="H1" CssClass="CommonTitle" /> 
</asp:Content>

<asp:Content ContentPlaceHolderID="bcr" runat="server">
    <div class="CommonContentBox">
        <div class="CommonContentBoxContent">
            <CSHub:EditHubForm runat="server" SubFormIds="ForumConfiguration,BlogConfiguration,MediaConfiguration,Avatar" ApplicationKeyTextBoxId="appkey"
                HubTypeRadioButtonListId="HubType" 
                GroupDropDownListId="HubGroup" 
                DescriptionEditorId="HubDescription" 
                NameTextBoxId="HubName" 
                SubmitButtonId="Save">
                <SuccessActions>
                    <CSControl:GoToCurrentSectionAction runat="server" />
                </SuccessActions>
                <FormTemplate>
                    <div class="CommonFormArea">
                        <div class="CommonFormSubTitle"><CSControl:ResourceControl runat="server" ResourceName="Hubs_Options" /></div>
                    
                        <CSControl:FormLabel ResourceName="Name" LabelForId="HubName" CssClass="CommonFormFieldName" runat="server" />
                        <div class="CommonFormField"><asp:TextBox runat="server" ID="HubName" Columns="40" /> <asp:RequiredFieldValidator runat="server" ControlToValidate="HubName" Cssclass="validationWarning">*</asp:RequiredFieldValidator></div>

                        <CSControl:FormLabel ResourceName="Description" LabelForId="HubDescription" CssClass="CommonFormFieldName" runat="server" />
                        <div class="CommonFormField"><CSControl:Editor runat="server" ID="HubDescription" Height="300px" /></div>
                    
                        <CSControl:FormLabel ResourceName="Hubs_Type" LabelForId="HubType" CssClass="CommonFormFieldName" runat="server" />
                        <div class="CommonFormField"><asp:RadioButtonList runat="server" ID="HubType" /> <asp:RequiredFieldValidator runat="server" ControlToValidate="HubType" Cssclass="validationWarning">*</asp:RequiredFieldValidator></div>
                    
                        <CSControl:PlaceHolder runat="server">
                            <DisplayConditions><CSControl:ControlPropertyValueComparison ComparisonControlId="HubGroup" ComparisonProperty="Items" Operator="GreaterThan" ComparisonValue="1" runat="server" /></DisplayConditions>
                            <ContentTemplate>
                                <CSControl:FormLabel ResourceName="Hubs_Group" LabelForId="HubGroup" CssClass="CommonFormFieldName" runat="server" />            
                                <div class="CommonFormField"><asp:DropDownList runat="Server" ID="HubGroup" /></div>
                            </ContentTemplate>
                        </CSControl:PlaceHolder>
                        
                        <CSHub:HubAvatarSubForm ID="Avatar" runat="server" DeleteAvatarButtonId="DeleteAvatar" UploadAvatarHtmlInputFileId="UploadAvatar">
                            <FormTemplate>
                                <div class="CommonFormSubTitle"><CSControl:ResourceControl runat="server" ResourceName="Hubs_AvatarOptions" /></div>
                                
                                <div class="CommonFormFieldName">
                                    <CSHub:HubAvatar runat="server" ShowDefaultAvatar="false" />
                                </div>

                                <div class="CommonFormField">
                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr valign="bottom">
                                        <td>
	                                        <CSControl:resourcecontrol runat="server" resourcename="Hubs_AvatarOptions_Upload" /><br />
        	                                <input type="file" runat="server" id="UploadAvatar" />
                                        </td>
                                        <td align="right">
	    	                                <CSControl:ResourceButton runat="server" ResourceName="Delete" ID="DeleteAvatar" />
                                        </td>
                                    </tr>
                                    </table>	
                                </div>
                            </FormTemplate>
                        </CSHub:HubAvatarSubForm>
                    
                        <CSForum:HubForumConfigurationSubForm runat="server" ID="ForumConfiguration"
                            EnableForumCheckBoxId="EnableForum" 
                            EnableModerationCheckBoxId="EnableModeration" 
                            MembersCanCreateThreadsCheckBoxId="MembersCanCreateThreads"
                            SubFormIds="ForumMailingListConfiguration">
                            <FormTemplate>
                                <div class="CommonFormSubTitle"><CSControl:ResourceControl runat="server" ResourceName="Hubs_ForumOptions" /></div>
                                
                                <div class="CommonFormFieldName">
                                    <CSControl:FormLabel ResourceName="ForumAdmin_IsActive" LabelForId="EnableForum" runat="server" />
                                    <asp:CheckBox runat="server" ID="EnableForum" />
                                </div>
                                
                                <div class="CommonFormFieldName">
                                    <CSControl:FormLabel ResourceName="Hubs_EnableForumModeration" LabelForId="EnableModeration" runat="server" />
                                    <asp:CheckBox runat="server" ID="EnableModeration" />
                                </div>
                                
                                <div class="CommonFormFieldName">
                                    <CSControl:FormLabel ResourceName="Hubs_EnableMemberCreateThreads" LabelForId="MembersCanCreateThreads" runat="server" />
                                    <asp:CheckBox runat="server" ID="MembersCanCreateThreads" />
                                </div>
                            </FormTemplate>
                        </CSForum:HubForumConfigurationSubForm>
                    
                        <CSBlog:HubWeblogConfigurationSubForm runat="server" ID="BlogConfiguration" 
                                    EnableWeblogCheckBoxId="EnableBlog" 
                                    EnableWeblogCommentsCheckBoxId="EnableBlogComments"
                                    EnableWeblogRatingsCheckBoxId="EnableBlogRatings"
                                    EnableWeblogTrackbacksCheckBoxId="EnableBlogTrackbacks"
                                    SubFormIds="BlogMailingListConfiguration">
                            <FormTemplate>
                                <div class="CommonFormSubTitle"><CSControl:ResourceControl runat="server" ResourceName="Hubs_BlogOptions" /></div>            
                                
                                <div class="CommonFormFieldName">
                                    <CSControl:FormLabel ResourceName="BlogSettings_IsEnabled" LabelForId="EnableBlog" runat="server" />
                                    <asp:CheckBox runat="server" ID="EnableBlog" />
                                </div>
                                
                                <div class="CommonFormFieldName">
                                    <CSControl:FormLabel ResourceName="BlogSettings_EnableComments" LabelForId="EnableBlogComments" runat="server" />
                                    <asp:CheckBox runat="server" ID="EnableBlogComments" />
                                </div>
                                
                                <div class="CommonFormFieldName">
                                    <CSControl:FormLabel ResourceName="BlogSettings_EnableRatings" LabelForId="EnableBlogRatings" runat="server" />
                                    <asp:CheckBox runat="server" ID="EnableBlogRatings" />
                                </div>
                                
                                <div class="CommonFormFieldName">
                                    <CSControl:FormLabel ResourceName="BlogSettings_EnableTrackbacks" LabelForId="EnableBlogTrackbacks" runat="server" />
                                    <asp:CheckBox runat="server" ID="EnableBlogTrackbacks" />
                                </div>
                            </FormTemplate>
                        </CSBlog:HubWeblogConfigurationSubForm>
                    
                        <CSMedia:HubMediaGalleryConfigurationSubForm runat="server" ID="MediaConfiguration"
                            EnableMediaGalleryCheckBoxId="EnableMedia" 
                            EnableModerationCheckBoxId="EnableModeration" 
                            MembersCanAddFilesCheckBoxId="MembersCanUpload">
                            <FormTemplate>
                                <div class="CommonFormSubTitle"><CSControl:ResourceControl runat="server" ResourceName="Hubs_FileOptions" /></div>
                                
                                <div class="CommonFormFieldName">
                                    <CSControl:FormLabel ResourceName="Hubs_EnableFiles" LabelForId="EnableFolder" runat="server" />
                                    <asp:CheckBox runat="server" ID="EnableMedia" />
                                </div>
                                
                                <div class="CommonFormFieldName">
                                    <CSControl:FormLabel ResourceName="Hubs_EnableFilesModeration" LabelForId="EnableModeration" runat="server" />
                                    <asp:CheckBox runat="server" ID="EnableModeration" />
                                </div>
                                
                                <div class="CommonFormFieldName">
                                    <CSControl:FormLabel ResourceName="Hubs_EnableMemberUploadFiles" LabelForId="MembersCanUpload" runat="server" />
                                    <asp:CheckBox runat="server" ID="MembersCanUpload" />
                                </div>
                            </FormTemplate>
                        </CSMedia:HubMediaGalleryConfigurationSubForm>
                        
                        <div class="CommonFormFieldName">
                            <CSControl:ResourceButton runat="server" ID="Save" ResourceName="Save" />
                        </div>
                    </div>
                </FormTemplate>
            </CSHub:EditHubForm>
        </div>
    </div>
</asp:Content>